// Copyright (c) 2008 Matthew Johnson
// Licensed under the MIT License (see license.txt)
package actionml.core {
	import actionml.Global;
	
	public class RegExpMethods {
		public static function initialize() {
			Global.initializeExtension(RegExpMethods, RegExp);
		}
		public static var instanceMethods:Object = {
			toPatternString: function() {
				return this.toString().replace(/^\/|\/[gismx]*$/g, "");
			}
		};
	}
}